package com.gp.learn.ssm.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.gp.learn.ssm.base.core.mybaits.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户角色
 * @author gp
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("app_role")
@ApiModel(value="AppRole对象", description="用户角色")
public class AppRole extends AbstractEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "角色ID")
    @TableId(value = "roleId", type = IdType.ID_WORKER)
    private Long roleId;

    @ApiModelProperty(value = "角色编码")
    @TableField("roleCode")
    private String roleCode;

    @ApiModelProperty(value = "角色名称")
    @TableField("roleName")
    private String roleName;

    @ApiModelProperty(value = "状态:0-无效 1-有效")
    private Boolean status;

    @ApiModelProperty(value = "分组名称")
    @TableField("groupName")
    private String groupName;

    @ApiModelProperty(value = "角色描述")
    @TableField("roleDesc")
    private String roleDesc;

    @ApiModelProperty(value = "保留数据0-否 1-是 不允许删除")
    @TableField("isPersist")
    private Boolean isPersist;


}
